import time

from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
from time import sleep
chrome_location=r'D:\Soft\chrome-win\chrome.exe'
driver_location=r'D:\Users\admin\AppData\Local\Programs\Python\Python38\chromedriver.exe' # 放在python目录下不需要就指定了
options=webdriver.ChromeOptions()
options.binary_location=chrome_location
service=Service(driver_location)
url='http://192.168.150.129/upload/'
url=r'http://192.168.150.129/upload/'
driver=webdriver.Chrome(options=options,service=service)
driver.get(url)
# 登录
# driver.find_element()
time.sleep(3)